﻿using System;
using Tanmia.Basis.Prism;
using Tanmia.Basis.ViewInterface;
using System.Windows.Input;

namespace SaryaAccounting
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : BaseWindow, IShellView
    {
        public MainWindow(MainViewModel viewModel)
        {
            InitializeComponent();
            this.DataContext = viewModel;
        }

        #region IShellView Members

        public void ShowWaitCursor(bool status)
        {
            Cursor = status ? Cursors.Wait : Cursors.Arrow;
        }

        public void UpdateStatus(string status)
        {
            tbStatus.Text = status;
        }

        #endregion
    }
}
